<?php

class numericEspecial extends Object implements especialInterface{
    
    public function validate($campo, &$value){
        if(!is_numeric($value)){
            $this->setErrorMessage("Digite apenas números inteiros");
            return false;
        }
        return true;
    }
    
     public function js($name, $array, $form){
         $this->LoadJsPlugin("formulario/keyfilther", "kf");
         $this->kf->int($name);
         $form->text($name, @$array['name'], @$array['default'], @$array['description']);
    }
}

?>
